From 2beca52386437e4d05d8c09ad55b889209f37280 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Mon, 11 Nov 2013 03:39:45 +0000 Subject: [PATCH] Roll back swmwpp. I'm out of soul to fight with it further. --- gpsbabel/stmwpp.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gpsbabel/stmwpp.cc b/gpsbabel/stmwpp.cc index e551c7aac..303a2cdbb 100644 --- a/gpsbabel/stmwpp.cc +++ b/gpsbabel/stmwpp.cc @@ -135,11 +135,7 @@ stmwpp_data_read(void) break; case 2: -#if NEW_STRINGS - wpt->shortname = QString::fromLatin1(c); -#else wpt->shortname = xstrdup(c); -#endif break; case 3: @@ -250,8 +246,8 @@ stmwpp_waypt_cb(const waypoint* wpt) snprintf(cdate, sizeof(cdate), "%02d/%02d/%04d", tm.tm_mon, tm.tm_mday, tm.tm_year); snprintf(ctime, sizeof(ctime), "%02d:%02d:%02d", tm.tm_hour, tm.tm_min, tm.tm_sec); - QString sn; switch (what) { + char* sn; case STM_WAYPT: case STM_RTEPT: @@ -260,7 +256,8 @@ stmwpp_waypt_cb(const waypoint* wpt) } else { sn = mkshort(short_h, wpt->shortname); } - gbfprintf(fout, "WP,D,%s,", CSTR(sn)); + gbfprintf(fout, "WP,D,%s,", sn); + xfree(sn); break; case STM_TRKPT: -- 2.30.2